package com.project.base.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.project.core.auth.LoginDTO;
import com.project.core.auth.LoginRes;
import com.project.core.auth.UserDTO;
import com.project.core.entity.User;

import javax.servlet.http.HttpServletRequest;

/**
 * @author mengxj
 */
public interface UserService extends IService<User> {

    /**
     * 登录
     * @param login 登陆参数
     * @return token等信息
     */
    LoginRes login(LoginDTO login);

    LoginRes refreshToken(HttpServletRequest request);

    void save( UserDTO user);

    void logout();
}
